package com.zmzncs.lmtc.module.customer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.customer.pojo.cust_ticket.CustTicket;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zmzncs.lmtc.module.customer.pojo.cust_ticket.CustTicketDTO;
import com.zmzncs.lmtc.module.customer.pojo.cust_ticket.CustTicketGrantForm;
import com.zmzncs.lmtc.module.customer.pojo.cust_ticket.CustTicketShopSelectForm;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 任建波
 * @since 2020-10-13
 */
public interface CustTicketService extends IService<CustTicket> {

    /** 条件分页查询优惠券使用详情*/
    Map<String,Object> getTicketUseInfo(Page page, Long ticketId);

    /**发放优惠券 */
    void grantTicket(CustTicketGrantForm form);

    /**分页查询商户优惠券领取情况*/
    IPage<CustTicketDTO> getShopTicketPage(CustTicketShopSelectForm form);
}
